Cssword-break: break-all and word-wrap: break-word can automatically wrap the content of a container such as DIV. However, there is a difference between the two. This article introduces the difference between css automatic line feed word-break:
Word-break: normal | break-All | keep-allParameters:Normal: line breaks are allowed according to the text rules of the Asian and non-Asian languages.Break-ALL: this behavior is the same as that of the Asian language normal. It also allows non-Asian
1. word-break: break-all: for example, if the div width is PX, its content will be automatically wrapped in px. If the end of the line has a long English word (congratulation, etc ), it truncates the word and converts it to the backend part of the
Source: http://homepage.yesky.com/207/7707707.shtml
This article lists line breaks compatible with IE and ff.CSSRecommended style, detailed introductionWord-wrapSameWord-break.Compatible with wrap CSS recommended styles for IE and FF
The best
CSS optimization is mainly four aspects:
Load performanceThis aspect related to the best practice too much, on-line search is a bunch of information, such as do not use import Ah, compression ah and so on, mainly from the reduction of file
Article Introduction: you may know what the selector is, what is called the attribute, what is the value, maybe you have a little bit of one or two on the CSS layout, but that's not enough. If you want to learn HTML and CSS from the beginning, I
---restore content starts---Xu YuxiLinks: https://www.zhihu.com/question/19886806/answer/80432295"CSS code refactoring and optimization path"The students who write CSS tend to realize that as the project size increases, the CSS code in the project
In the design of the website, should pay attention to CSS style compatible with different browser issues, especially for the full use of the div CSS design site, you should pay more attention to the IE6 IE7 ff CSS style compatibility , otherwise,
The students who write CSS tend to realize that as the project size increases, the CSS code in the project will be more and more, and if the CSS code is not maintained in time, the CSS code will continue to be more and more. CSS code interleaved
The students who write CSS tend to realize that as the project size increases, the CSS code in the project will be more and more, and if the CSS code is not maintained in time, the CSS code will continue to be more and more. CSS code interleaved
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.